/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package excecoes;
 
import javax.xml.ws.WebFault;
 
@WebFault(faultBean = "FaultDetail")
public class WSException extends Exception {
   
    private final FaultDetail faultDetail;
 
    public WSException(String message, FaultDetail detail) {
        super(message);
        this.faultDetail = detail;
    }
 
    public WSException(String message, FaultDetail detail, Throwable cause) {
        super(message, cause);
        this.faultDetail = detail;
    }
 
    public FaultDetail getFaultDetail() {
        return faultDetail;
    }        
}